public class RunTest {
	public static void main(String[] a) {
		//String result = "Result is " + BinomialCalculator.calRawI(7);
		//String result = "Result is " + BinomialCalculator.calRawD(7.0);
		//String result = "Result is " + BinomialCalculator.calRefineI(7);
		//String result = "Result is " + testConvertInt2Float();
		//String result = "Result is " + BasicTypeConverter.startConvert();
		//String result = "Result is " + StackDemo.runStack();
		//String result = "Result is " + testDinosaur();
		//String result = "Result is " + testVelociraptor();
		//String result = "Result is " + testHypotenuse();
		//String result = "";
		//testPrinter();
		//String result = "Result is " + testHello454();
		//String result = "Result is " + testDinosaurColor();
		//String result = "Result is " + testArrayDemo();
		//String result = "Result is " + testNumberComparator();
		//String result = "Result is " + testStringArray();
		//String result = "Result is " + testJSRTester();
		//String result = "Result is " + testException();
		String result = "Result is " + testClassFileDemo();
		System.out.println(result);
	}
	
	private static String testConvertInt2Float() {
		String ret = "";
		
		int i = 2147483647;
		float f = i;
		int i2 = (int) f;
		
		ret += "\ni = " + i;
		ret += "\nf = " + f;
		ret += "\ni2 = " + i2;
		
		return ret;
	}
	
	private static String testDinosaur() {
		String ret = "";
		
		Dinosaur dino = new Dinosaur("raptor", true);
		ret += dino.name + " : " + dino.carnivorous;
		
		return ret;
	}
	
	private static String testVelociraptor() {
		String ret = "";
		
		Dinosaur dino = new Velociraptor();
		ret += dino.name + " : " + dino.carnivorous;
		
		return ret;
	}
	
	private static String testHypotenuse() {
		String ret = "";
		
		RightTriangle tri = new RightTriangle(3.0f, 4.0f);
		ret += tri.hypotenuse();
		
		return ret;
	}
	
	private static void testPrinter() {
		JavaPrinter p = new JavaHelloPrinter();
		p.print(new Hello());
		JavaHelloPrinter p1 = (JavaHelloPrinter) p;
		p1.print(new Hello());
	}
	
	private static String testHello454() {
		return Hello454Launcher.sayGreet(new Specialhello454());	
	}
	
	private static String testDinosaurColor() {
		String ret = "";
		
		Dinosaur dino = new Dinosaur("raptor", true);
		dino.setColor("green");
		ret += dino.name + " : " + dino.carnivorous + " : " + dino.color;
		ret += "\n";
		Dinosaur dino1 = new Dinosaur("raptor1", true);
		dino1.setColor(java.awt.Color.BLACK);
		ret += dino1.name + " : " + dino1.carnivorous + " : " + dino1.color;
		return ret;
	}
	
	private static String testArrayDemo() {
		String ret = "";
		ret += ArrayDemo.demo();
		return ret;
	}
	
	/*
	private static String testNumberComparator() {
		String ret = "";
		
		ret += "'G' is uppercase? " + NumberComparator.isUpper1((char)89) + ";\n";
		
		return ret;
	}
	
	
	private static String testStringArray() {
		String ret = "";
		
		String args[] = {"one", "two", "three", "four"};
		StringArrayIterator.main(args);
		
		return ret;
	}
	
	
	private static String testJSRTester() {
		String ret = "";
		
		JsrTester.jsr();
		
		return ret;
	}
	*/
	
	private static String testException() {
		String ret = "";
		ExceptionDemo.noshSnack();
		String args[] = {"one", "two", "three", "four"};
		ExceptionDemo.arrayOutOfBound(args);
		return ret;
	}
	
	private static String testClassFileDemo() {
		String ret = "";
		StackUnification.print(false,0,1.1f);
		return ret;
	}
}    
